package com.zzc.controller;

import com.zzc.serviceImpl.UserServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class registeredController {

    @Autowired
    UserServiceImp userServiceImp;

    @PostMapping("/registered/{userPhone}/{userName}/{pwd}")
    public String registered(@PathVariable("userPhone") String userPhone,@PathVariable("userName") String userName,@PathVariable("pwd") String pwd){
        return userServiceImp.addUser(userName,userPhone,pwd);
    }
}
